package com.maiji.cloud;

import com.maiji.cloud.cfgbeans.RibbonAppLoginConfig;
import com.maiji.cloud.cfgbeans.RibbonCommunityConfig;
import com.maiji.cloud.cfgbeans.RibbonShopingMallConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@SpringBootApplication
@EnableEurekaClient  //本服务启动后会自动注册进eureka服务中
@RibbonClients(value = {
		@RibbonClient(name="MAIJICLOUD-APPLOGIN", configuration = RibbonAppLoginConfig.class),
		@RibbonClient(name="MAIJICLOUD-SHOPINGMALL", configuration = RibbonShopingMallConfig.class),
		@RibbonClient(name="MAIJICLOUD-COMMUNITY", configuration = RibbonCommunityConfig.class)
})
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class AppInterface_Main {

	public static void main(String[] args) {
		SpringApplication.run(AppInterface_Main.class, args);
	}

}
